package cn.itcast.dao;

import cn.itcast.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Demo class
 *
 * @author gyc
 * @date 2021 /10/17
 */
public interface OrderSettingDao {
    /**
     * Find order by date order setting.
     *
     * @param today the today
     * @return the order setting
     */
    OrderSetting findOrderByDate(Date today);

    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);


    void update(OrderSetting orderSetting);
}
